package com.linhh.mall.center.common.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Table(name = "collection")
public class Collection extends BaseEntity implements Serializable{

    /**
     * 藏品名称
     */
    @Column(name = "name", nullable = false, length = 50)
    private String name;

    /**
     * 藏品编号
     */
    @Column(name = "number", nullable = false, length = 50)
    private String number;

    /**
     * 藏品状态
     */
    @Column(name = "status", nullable = false, length = 20)
    private String status;

    /**
     * 藏品描述
     */
    @Column(name = "description", nullable = false, length = 255)
    private String description;

}